{% extends '__base.tpl' %}

{% block head %}
{{super()}}
<!-- build:css -->
<link rel="stylesheet" type="text/css" href="../../../public/css/page/sendGift.css" />
<!-- endbuild -->
{% endblock %}

{% block body %}
<div class="user-bg">
    <div id="box">
        <div class="section-box">
        <div class="section-title">
            <span class="font24">送心意</span>
            <a class="blue font12 ml10" href="javascript:history.back();">返回</a>
        </div>
        <ul class="gift-ul" id="giftList"></ul>
        <script id="giftList_tpl" type="text/html">
            <%each data as arr i%>
            <li class="gift-li <%if i ==0 %> checked <%/if%>"  data-supportpays="<%arr.supportPays%>"
                data-id="<%arr.id%>" data-price="<%arr.price%>">
                <div class="img-wrap">
                    <img src="<%=imgPath(arr.imgUrl)%>" alt="send_gift">
                </div>
                <%if arr.price< 0 %>
                红包
                <%else%>
                <%arr.price%>元
                <%/if%>
            </li>
            <%/each%>
        </script>
        <div class="center clo6 mb20 hide" id="input-custom">
            给个红包：
            <input id="price" style="width: 220px;" class="input mr10" placeholder="输入金额/金币" type="number">
            <label class="hide rmb">
                <input class="radio" value="0" type="radio" name="currency"> 元
            </label>
            <label class="hide gold">
                <input class="radio" value="1" type="radio" name="currency">金币
            </label>
        </div>
        <div class="mt20" style="width:460px;margin: 20px auto 200px;">
            <input id="content" class="input" style="background-color: #f8f8f8" placeholder="非常感谢！" type="text">
            <p class="mt20 clo6">我要支付一定的红包作为心意</p>
            <p class="clo9">（您支付给对方的心意将会全部转入他的个人账户，他会受到您的留言）</p>
        </div>
        <div class="center">
            <button class="common-btn" onclick="BASE.SENDGIFG.sendGift(this)" >确认</button>
        </div>
    </div>
    </div>
</div>
{% endblock %}

{% block script %}
{{ super() }}
<!-- build:js -->
<script src="../../../public/js/page/other/sendGift.js"></script>
<!-- endbuild -->
{% endblock %}